package com.lagou.entity;

import java.util.Date;

public class Student {
    private int id;   //学号
    private String name; //姓名
    private String gender; //性别
    //    private String birthday; //生日
    private Date birthday; //生日
    private String email;  //邮箱
    private String comment; //备注
    private int class_id;  //班级编号

    public int getClass_id() {
        return class_id;
    }

    public void setClass_id(int class_id) {
        this.class_id = class_id;
    }

    public Student() {}

    public Student(int id, String name, String gender, Date birthday, String email, String comment) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.birthday = birthday;
        this.email = email;
        this.comment = comment;
    }

    public Student(String name, String gender, Date birthday, String email, String comment) {
        this.name = name;
        this.gender = gender;
        this.birthday = birthday;
        this.email = email;
        this.comment = comment;
    }

    public Student(String name, String gender, Date birthday, String email, String comment, int class_id) {
        this.name = name;
        this.gender = gender;
        this.birthday = birthday;
        this.email = email;
        this.comment = comment;
        this.class_id = class_id;
    }


    public Student(int id, String name, String gender, Date birthday, String email, String comment, int class_id) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.birthday = birthday;
        this.email = email;
        this.comment = comment;
        this.class_id = class_id;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", birthday='" + birthday + '\'' +
                ", email='" + email + '\'' +
                ", comment='" + comment + '\'' +
                '}';
    }
}
